72. Araxis Merge File Comparison Report

Produced by Araxis Merge on 2022-11-18 03:12:07 +0000. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

72.1 Files compared

#LocationFileLast Modified
1Porto Theme/app/design/frontend/Smartwave/porto/Magento_CatalogWidget/templates/product/widget/contentgrid.phtml2017-02-08 08:16:42 +0000
2Theme Files/Magento 2.x/Porto Theme/app/design/frontend/Smartwave/porto/Magento_CatalogWidget/templates/product/widget/contentgrid.phtml2022-10-25 07:49:02 +0000

72.2 Comparison summary

DescriptionBetween
Files 1 and 2
Text BlocksLines
Unchanged24262
Changed13172
Inserted441
Removed69

72.3 Comparison options

WhitespaceConsecutive whitespace is treated as a single space
Character caseDifferences in character case are significant
Line endingsDifferences in line endings (CR and LF characters) are ignored
CR/LF charactersNot shown in the comparison detail
Active line-pairing rules

72.4 Active regular expressions

No regular expressions were active.

72.5 Comparison detail

1 <?php 1 <?php
2 /** 2 /**
3  * Copyright © 2015 Magento. All rights reserved. 3  * Copyright © 2015 Magento. All rights reserved.
4  * See COPYING.txt for license details. 4  * See COPYING.txt for license details.
5  */ 5  */
6  6 
7 // @codingStandardsIgnoreFile 7 // @codingStandardsIgnoreFile
8  8 
9 ?> 9 ?>
10 <?php 10 <?php
11 /** 11 /**
12  * Template for displaying products list widget 12  * Template for displaying products list widget
13  * 13  *
14  * @var $block \Magento\CatalogWidget\Block\Product\ProductsList 14  * @var $block \Magento\CatalogWidget\Block\Product\ProductsList
15  */ 15  */
16 ?> 16 ?>
17 <?php if ($exist = ($block->getProductCollection() && $block->getProductCollection()->getSize())):?> 17 <?php if ($exist = ($block->getProductCollection() && $block->getProductCollection()->getSize())):?>
18 <?php 18 <?php
19 $_productCollection = $block->getLoadedProductCollection(); 19 $_productCollection = $block->getLoadedProductCollection();
    20 
    21 // Daily deal Helper
    22 $_dailydealhelper =$this->helper('Smartwave\Dailydeals\Helper\Data');
    23 
    24 $_portohelper = $this->helper('Smartwave\Porto\Helper\Data');
    25 $_category_config = $_portohelper->getConfig('porto_settings/category');
    26 $_category_grid_config = $_portohelper->getConfig('porto_settings/category_grid');
    27 $_product_label_config = $_portohelper->getConfig('porto_settings/product_label');
    28 $_lazyload = $_portohelper->getConfig('porto_settings/optimization/lazyload');
    29 $product_type = $_category_grid_config['product_type'];
    30 
20 $_helper = $this->helper('Magento\Catalog\Helper\Output'); 31 $_helper = $this->helper('Magento\Catalog\Helper\Output');
21 $_imagehelper = $this->helper('Magento\Catalog\Helper\Image'); 32 $_imagehelper = $this->helper('Magento\Catalog\Helper\Image');
22     
23 $_category_config = $this->helper('Smartwave\Porto\Helper\Data')->getConfig('porto_settings/category');    
24 $_category_grid_config = $this->helper('Smartwave\Porto\Helper\Data')->getConfig('porto_settings/category_grid');    
25 ?> 33 ?>
26 <?php 34 <?php
27     $type = 'widget-product-grid'; 35     $type = 'widget-product-grid';
28  36 
29     $mode = 'grid'; 37     $mode = 'grid';
30  38 
31     $image = 'new_products_content_widget_grid'; 39     $image = 'category_page_list';
32     $hover_image = 'category_page_grid-hover'; 40     $hover_image = 'category_page_list-hover';
33     $title = $block->getTitle() ? __($block->getTitle()) : ''; 41     $title = $block->getTitle() ? __($block->getTitle()) : '';
34     $items = $block->getProductCollection()->getItems(); 42     $items = $block->getProductCollection()->getItems();
35  43     $column_count = $this->getData("column_count")
    44     if($column_count == null) {
    45         $column_count = 4;
    46     }
36     $showWishlist = true; 47     $showWishlist = true;
37     $showCompare = true; 48     $showCompare = true;
38     $showCart = true; 49     $showCart = true;
39     $templateType = \Magento\Catalog\Block\Product\ReviewRendererInterface::DEFAULT_VIEW; 50     $templateType = \Magento\Catalog\Block\Product\ReviewRendererInterface::DEFAULT_VIEW;
40     $description = false; 51     $description = false;
41     
42     $image_width = ($_category_config['ratio_width'])?$_category_config['ratio_width']:300; 52     $image_width = ($_category_config['ratio_width'])?$_category_config['ratio_width']:300;
43     $image_height = ($_category_config['ratio_height'])?$_category_config['ratio_height']:300; 53     $image_height = ($_category_config['ratio_height'])?$_category_config['ratio_height']:300;
    54     $aspect_ratio = $_category_config['aspect_ratio'];
    55     if($aspect_ratio)
    56         $image_height = $image_width;
44 ?> 57 ?>
45     <div class="block widget block-products-list <?php /* @escapeNotVerified */ echo $mode; ?>">    
46         <?php if ($title):?> 58         <?php if ($title):?>
47         <div class="block-title"> 59         <div class="block-title">
48             <strong><?php /* @escapeNotVerified */ echo $title; ?></strong> 60             <strong><?php /* @escapeNotVerified */ echo $title; ?></strong>
49         </div> 61         </div>
50         <?php endif ?> 62         <?php endif ?>
51         <div class="block-content">    
52             <?php /* @escapeNotVerified */ echo '<!-- ' . $image . '-->' ?> 63         <?php /* @escapeNotVerified */ echo '<!-- ' . $image . '-->' ?>
53             <div class="products-grid products-<?php /* @escapeNotVerified */ echo $mode; ?> <?php /* @escapeNotVerified */ echo $mode; ?>"> 64         <div class="products-grid products-<?php /* @escapeNotVerified */ echo $mode; ?> columns<?php echo $column_count; ?> <?php /* @escapeNotVerified */ echo $mode; ?><?php if($product_type == 2): ?> no-padding divider-line<?php endif; ?><?php if($product_type == 5 || $product_type == 6 || $product_type == 7 || $product_type == 8): ?> no-padding<?php endif; ?><?php if($product_type == 6): ?> divider-line<?php endif; ?>">
54                 <ol class="
product-items <?php /* @escapeNotVerified */ echo $type; ?>">
 65             <ol class="products product-items <?php /* @escapeNotVerified */ echo $type; ?>">
55                     <?php $iterator = 1; ?> 66                 <?php $iterator = 1; ?>
56                     <?php foreach ($items as $_item): ?> 67                 <?php foreach ($items as $_item): ?>
57                         <?php /* @escapeNotVerified */ echo($iterator++ == 1) ? '<li class="
product-item">' : '</li><li class="
product-item">' ?>
 68                     <?php /* @escapeNotVerified */ echo($iterator++ == 1) ? '<li class="item product product-item">' : '</li><li class="item product product-item">' ?>
58                         <div class="product
-item-info">
 69                     <div class="product-item-info type<?php echo $product_type; ?>" data-container="product-grid">
59                             <a href="<?php echo $_item->getProductUrl() ?>" class="product photo product-item-photo" tabindex="-1"> 70                         <div class="product photo product-item-photo">
    71                           <a href="<?php echo $_item->getProductUrl() ?>" 
tabindex="-1">
60                                 <?php 72                               <?php
61                                     if($_category_config['aspect_ratio']) 73                                   if($_category_config['aspect_ratio'])
62                                         $productImage = $_imagehelper->init($_item, $image)->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize($image_width); 74                                       $productImage = $_imagehelper->init($_item, $image)->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize($image_width);
63                                     else 75                                   else
64                                         $productImage = $_imagehelper->init($_item, $image)->resize($image_width, $image_height); 76                                       $productImage = $_imagehelper->init($_item, $image)->resize($image_width, $image_height);
65                                     $productImageUrl = $productImage->getUrl(); 77                                   $productImageUrl = $productImage->getUrl();
66                                 ?> 78                               ?>
67                                     <img class="product-image-photo default_image
src="<?php echo $productImageUrl; ?>" 
alt="<?php echo $productImage->getLabel(); ?>"/>
 79                                   <img class="product-image-photo default_image<?php if(!$_lazyload): ?> porto-lazyload<?php endif;?>" <?php if(!$_lazyload): ?>src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==data-<?php endif; ?>src="<?php echo $productImageUrl; ?>" width="<?php echo $image_width; ?>" height="<?php echo $image_height; ?>" alt="<?php echo $productImage->getLabel(); ?>"/>
68                                 <?php if($_category_config['alternative_image']): ?> 80                               <?php if($_category_config['alternative_image']): ?>
69                                 <?php 81                               <?php
70                                     if($_category_config['aspect_ratio']) 82                                   if($_category_config['aspect_ratio'])
71                                         $productHoverImage = $_imagehelper->init($_item, $hover_image)->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize($image_width); 83                                       $productHoverImage = $_imagehelper->init($_item, $hover_image)->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize($image_width);
72                                     else 84                                   else
73                                         $productHoverImage = $_imagehelper->init($_item, $hover_image)->resize($image_width, $image_height); 85                                       $productHoverImage = $_imagehelper->init($_item, $hover_image)->resize($image_width, $image_height);
74                                     $productHoverImageUrl = $productHoverImage->getUrl(); 86                                   $productHoverImageUrl = $productHoverImage->getUrl();
75                                 ?> 87                               ?>
76                                     <?php if($productImageUrl != str_replace("/thumbnail/","/small_image/",$productHoverImageUrl)): ?> 88                                   <?php if($productImageUrl != str_replace("/thumbnail/","/small_image/",$productHoverImageUrl)): ?>
77                                     <img class="product-image-photo hover_image
src="<?php echo $productHoverImageUrl; ?>" 
alt="<?php echo $productHoverImage->getLabel(); ?>"/>
 89                                   <img class="product-image-photo hover_image<?php if(!$_lazyload): ?> porto-lazyload<?php endif;?>" <?php if(!$_lazyload): ?>src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==data-<?php endif; ?>src="<?php echo $productHoverImageUrl; ?>" width="<?php echo $image_width; ?>" height="<?php echo $image_height; ?>" alt="<?php echo $productHoverImage->getLabel(); ?>"/>
78                                     <?php endif; ?> 90                                   <?php endif; ?>
79                                 <?php endif; ?> 91                               <?php endif; ?>
80                             </a> 92                           </a>
81                             <div class="product-item-details"> 93                           <?php
82                                 <strong class="product
-item-name">
 94                               $product_label = "";
83                                     <a title="<?php echo $block->escapeHtml($_item->getName(
))
 ?>"
 95                               if($_product_label_config['sale_label']) {
84                                        href="<?php /* @escapeNotVerified */ echo $block->getProductUrl($_item) ?>" 96                                   if ($percentage = $_portohelper->getPercentage($_item)) {
85                                        
class="product-item-link">
 97                                       if($_product_label_config['sale_label_percent']) {
86                                         <?php echo $block->escapeHtml($_item
->getName()
)
 ?>
 98                                           $product_label .= '<div class="product-label sale-label">'.$percentage.'%'.'</div>';
    99                                       } else {
    100                                           $product_label .= '<div class="product-label sale-label">'.$_product_label_config['sale_label_text'].'</div>';
    101                                       }
    102                                   }
    103                               }
    104                               if($_product_label_config['new_label']) {
    105                                   $now = date("Y-m-d");
    106                                   $newsFrom= substr($_item->getData('news_from_date')?$_item->getData('news_from_date'):'',0,10);
    107                                   $newsTo=  substr($_item->getData('news_to_date')?$_item->getData('news_to_date'):'',0,10);
    108 
    109                                   if ($newsTo != '' || $newsFrom != ''){
    110                                       if (($newsTo != '' && $newsFrom != '' && $now>=$newsFrom && $now<=$newsTo) || ($newsTo == '' && $now >=$newsFrom) || ($newsFrom == '' && $now<=$newsTo)) {
    111                                           $product_label .= '<div class="product-label new-label">'.$_product_label_config['new_label_text'].'</div>';
    112                                       }
    113                                   }
    114                               }
    115                               if($product_label)
    116                                   echo '<div class="product-labels">'.$product_label.'</div>';
    117                           ?>
    118                           <?php if($product_type == 3 || $product_type == 5 || $product_type == 6 || $product_type == 7 || $product_type == 8 || $product_type == 9): ?>
    119                           <div class="product-item-inner">
    120                               <div class="product actions product-item-actions">
    121                                   <div class="actions-primary">
    122                                       <?php if ($_item->isSaleable()): ?>
    123                                         <?php if ($_item->getTypeInstance()->hasRequiredOptions($_item)): ?>
    124                                             <button class="action tocart primary"
    125                                                     data-mage-init='{"redirectUrl":{"url":"<?php /* @escapeNotVerified */ echo $block->getAddToCartUrl($_item) ?>"}}'
    126                                                     type="button" title="<?php /* @escapeNotVerified */ echo __('Add to Cart') ?>">
    127                                                 <span><?php /* @escapeNotVerified */ echo __('Add to Cart') ?></span>
    128                                             </button>
    129                                         <?php else: ?>
    130                                             <?php
    131                                                 $postDataHelper = $this->helper('Magento\Framework\Data\Helper\PostHelper');
    132                                                 $postData = $postDataHelper->getPostData($block->getAddToCartUrl($_item), ['product' => $_item->getEntityId()])
    133                                             ?>
    134                                             <button class="action tocart primary"
    135                                                     data-post='<?php /* @escapeNotVerified */ echo $postData; ?>'
    136                                                     type="button" title="<?php /* @escapeNotVerified */ echo __('Add to Cart') ?>">
    137                                                 <span><?php /* @escapeNotVerified */ echo __('Add to Cart') ?></span>
    138                                             </button>
    139                                         <?php endif; ?>
    140                                       <?php else: ?>
    141                                           <?php if ($_item->getIsSalable()): ?>
    142                                               <div class="stock available"><span><?php echo __('In stock') ?></span></div>
    143                                           <?php else: ?>
    144                                               <div class="stock unavailable"><span><?php echo __('Out of stock') ?></span></div>
    145                                           <?php endif; ?>
    146                                       <?php endif; ?>
    147                                   </div>
    148                                   <?php if ($mode == 'grid'): ?>
    149                                   <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?>
    150                                       <a href="#"
    151                                          class="action towishlist actions-secondary"
    152                                          
title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
    153                                          aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
    154                                          data-post='<?php echo $block->getAddToWishlistParams($_item); ?>'
    155                                          data-action="add-to-wishlist"
    156                                          role="button">
    157                                           <span><?php echo __('Add to Wish List') ?></span>
    158                                       </a>
    159                                   <?php endif; ?>
    160                                   <?php endif; ?>
    161                                   <?php if($_category_config['addtocompare']): ?>
    162                                   <?php
    163                                   $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare');
    164                                   ?>
    165                                   <a href="#"
    166                                      class="action tocompare actions-secondary"
    167                                      title="<?php echo $block->escapeHtml(__('Add to Compare')); ?>"
    168                                      aria-label="<?php echo $block->escapeHtml(__('Add to Compare')); ?>"
    169                                      data-post='<?php echo $compareHelper->getPostDataParams($_item); ?>'
    170                                      role="button">
    171                                       <span><?php echo __('Add to Compare') ?></span>
    172                                   </a>
    173                                   <?php endif; ?>
    174                               </div>
    175                           </div>
    176                           <?php endif; ?>
    177                         </div>
    178                         <div class="product details product-item-details">
    179                           <?php
    180                               $_productNameStripped = $block->stripTags($_item->getName(), null, true);
    181                           ?>
    182                           <strong class="product name product-item-name">
    183                               <a class="product-item-link"
    184                                  href="<?php echo $_item->getProductUrl() ?>">
    185                                   <?php echo $_helper->productAttribute($_item, $_item->getName(), 'name'); ?>
87                                     </a> 186                               </a>
88                                 </strong> 187                           </strong>
89  188 
90                                 <?php if($_category_config['rating_star']): ?> 189                             <?php if($_category_config['rating_star']): ?>
91                                 <?php 190                             <?php
92                                     $review_html = $block->getReviewsSummaryHtml($_item, $templateType); 191                                 $review_html = $block->getReviewsSummaryHtml($_item, $templateType);
93                                 ?> 192                             ?>
94                                 <?php if($review_html): ?> 193                             <?php if($review_html): ?>
95                                     <?php echo $review_html; ?> 194                                 <?php echo $review_html; ?>
96                                 <?php else: ?> 195                             <?php else: ?>
97                                 <div class="product-reviews-summary short"> 196                             <div class="product-reviews-summary short">
98                                     <div class="rating-summary"> 197                                 <div class="rating-summary">
99                                         <span class="label"><span>Rating:</span></span> 198                                     <span class="label"><span>Rating:</span></span>
100                                         <div class="rating-result" title="0%"> 199                                     <div class="rating-result" title="0%">
101                                             <span style="width:0"><span>0%</span></span> 200                                         <span style="width:0"><span>0%</span></span>
102                                         </div> 201                                     </div>
103                                     </div> 202                                 </div>
104                                 </div> 203                             </div>
105                                 <?php endif; ?> 204                             <?php endif; ?>
106                                 <?php endif; ?> 205                             <?php endif; ?>
107  206 
108                                 <?php if($_category_config['product_price']): ?> 207                             <?php if($_category_config['product_price']): ?>
109                                 <?php echo $block->getProductPriceHtml($_item, $type); ?> 208                             <?php echo $block->getProductPriceHtml($_item, $type); ?>
110                                 <?php endif; ?> 209                             <?php endif; ?>
111  210                             <?php if($product_type != 3 && $product_type != 5 && $product_type != 6 && $product_type != 7 && $product_type != 8 && $product_type != 9): ?>
112                                 <?php if($_category_config['actions']): ?> 211                             <div class="product-item-inner">
113                                 <?php if ($showWishlist || $showCompare || $showCart): ?> 212                                 <div class="product actions product-item-actions">
114                                     <div class="product
-item-actions">
 213                                     <?php if ($mode == 'grid'): ?>
115                                         <?php if($_category_config['addtowishlist']
): ?>
 214                                     <?php if($_category_config['addtowishlist'] && $product_type != 4): ?>
116                                             <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow() && $showWishlist): ?> 215                                     <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()
): ?>
117                                                 <a href="#" 216                                         <a href="#"
118                                                    data-post='<?php /* @escapeNotVerified */ echo $block->getAddToWishlistParams($_item); ?>' 217                                            class="action towishlist actions-secondary"
119                                                    class="action towishlist actions-secondary" data-action="add-to-wishlist" 218                                            title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
120                                                    title="<?php /* @escapeNotVerified */ echo __('Add to Wish List') ?>"> 219                                            aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
121                                                     <span><?ph/* @escapeNotVerified */ echo __('Add to Wish List') ?></span> 220                                            data-post='<?php 
echo $block->getAddToWishlistParams($_item); ?>'
    221                                            
data-action="add-to-wishlist"
    222                                            role="button">
    223                                             <span><?ph
echo __('Add to Wish List') ?></span>
122                                                 </a> 224                                         </a>
123                                             <?php endif; ?> 225                                     <?php endif; ?>
124                                         <?php endif; ?> 226                                     <?php endif; ?>
125                                         <?php if ($showCart): ?> 227                                     <?php endif; ?>
126                                             <div class="actions-primary"> 228                                     <div class="actions-primary">
127                                                 <?php if ($_item->isSaleable()): ?> 229                                         <?php if ($_item->isSaleable()): ?>
128                                                     <?php if ($_item->getTypeInstance()->hasRequiredOptions($_item)): ?> 230                                           <?php if ($_item->getTypeInstance()->hasRequiredOptions($_item)): ?>
129                                                         <button class="action tocart primary" 231                                               <button class="action tocart primary"
130                                                                 data-mage-init='{"redirectUrl":{"url":"<?php /* @escapeNotVerified */ echo $block->getAddToCartUrl($_item) ?>"}}' 232                                                       data-mage-init='{"redirectUrl":{"url":"<?php /* @escapeNotVerified */ echo $block->getAddToCartUrl($_item) ?>"}}'
131                                                                 type="button" title="<?php /* @escapeNotVerified */ echo __('Add to Cart') ?>"> 233                                                       type="button" title="<?php /* @escapeNotVerified */ echo __('Add to Cart') ?>">
132                                                             <span><?php /* @escapeNotVerified */ echo __('Add to Cart') ?></span> 234                                                   <span><?php /* @escapeNotVerified */ echo __('Add to Cart') ?></span>
133                                                         </button> 235                                               </button>
134                                                     <?php else: ?> 236                                           <?php else: ?>
135                                                         <?php 237                                               <?php
136                                                             $postDataHelper = $this->helper('Magento\Framework\Data\Helper\PostHelper'); 238                                                   $postDataHelper = $this->helper('Magento\Framework\Data\Helper\PostHelper');
137                                                             $postData = $postDataHelper->getPostData($block->getAddToCartUrl($_item), ['product' => $_item->getEntityId()]) 239                                                   $postData = $postDataHelper->getPostData($block->getAddToCartUrl($_item), ['product' => $_item->getEntityId()])
138                                                         ?> 240                                               ?>
139                                                         <button class="action tocart primary" 241                                               <button class="action tocart primary"
140                                                                 data-post='<?php /* @escapeNotVerified */ echo $postData; ?>' 242                                                       data-post='<?php /* @escapeNotVerified */ echo $postData; ?>'
141                                                                 type="button" title="<?php /* @escapeNotVerified */ echo __('Add to Cart') ?>"> 243                                                       type="button" title="<?php /* @escapeNotVerified */ echo __('Add to Cart') ?>">
142                                                             <span><?php /* @escapeNotVerified */ echo __('Add to Cart') ?></span> 244                                                   <span><?php /* @escapeNotVerified */ echo __('Add to Cart') ?></span>
143                                                         </button> 245                                               </button>
144                                                     <?php endif; ?> 246                                           <?php endif; ?>
145                                                 <?php else: ?> 247                                         <?php else: ?>
146                                                     <?php if ($_item->getIsSalable()): ?> 248                                             <?php if ($_item->getIsSalable()): ?>
147                                                         <div class="stock available"><span><?php /* @escapeNotVerified */ echo __('In stock') ?></span></div> 249                                                 <div class="stock available"><span><?php 
echo __('In stock') ?></span></div>
148                                                     <?php else: ?> 250                                             <?php else: ?>
149                                                         <div class="stock unavailable"><span><?php /* @escapeNotVerified */ echo __('Out of stock') ?></span></div> 251                                                 <div class="stock unavailable"><span><?php 
echo __('Out of stock') ?></span></div>
150                                                     <?php endif; ?> 252                                             <?php endif; ?>
151                                                 <?php endif; ?> 253                                         <?php endif; ?>
152                                             </div> 254                                     </div>
    255                                     <?php if ($mode == 'grid'): ?>
    256                                     <?php if($_category_config['addtowishlist'] && $product_type == 4): ?>
    257                                     <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?>
    258                                         <a href="#"
    259                                            class="action towishlist actions-secondary"
    260                                            title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
    261                                            aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
    262                                            data-post='<?php echo $block->getAddToWishlistParams($_item); ?>'
    263                                            data-action="add-to-wishlist"
    264                                            role="button">
    265                                             <span><?php echo __('Add to Wish List') ?></span>
    266                                         </a>
153                                         <?php endif; ?> 267                                     <?php endif; ?>
154                                         <?php if($_category_config['addtocompare']): ?> 268                                     <?php endif; ?>
155                                             <?php if ($block->getAddToCompareUrl() && $showCompare): ?> 269                                     <?php endif; ?>
156                                                 <?php $compareHelper = 
$this->helper('Magento\Catalog\Helper\Product\Compare');?>
 270                                     <?php if ($mode == 'list'): ?>
157                                                 <a href="#class="action tocompare actions-secondary" 271                                     <?php if($_category_config['addtowishlist']): ?>
158                                                    data-post='<?php /* @escapeNotVerified */ echo $compareHelper->getPostDataParams($_item);?>' 272                                     <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?>
159                                                    title="<?php /* @escapeNotVerified */ echo __('Add to Compare') ?>"> 273                                         <a href="#"
160                                                     <span><?ph/* @escapeNotVerified */ echo __('Add to Compare') ?></span> 274                                            
class="action towishlist actions-secondary"
    275                                            title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
    276                                            aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
    277                                            data-post='<?php echo $block->getAddToWishlistParams($_item); ?>'
    278                                            data-action="add-to-wishlist"
    279                                            role="button">
    280                                             <span><?ph
echo __('Add to Wish List') ?></span>
161                                                 </a> 281                                         </a>
162                                             <?php endif; ?> 282                                     <?php endif; ?>
163                                         <?php endif; ?> 283                                     <?php endif; ?>
164                                     </div>    
165                                 <?php endif; ?> 284                                     <?php endif; ?>
    285                                     <?php if($_category_config['addtocompare']): ?>
    286                                     <?php
    287                                     $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare');
    288                                     ?>
    289                                     <a href="#"
    290                                        class="action tocompare actions-secondary"
    291                                        title="<?php echo $block->escapeHtml(__('Add to Compare')); ?>"
    292                                        aria-label="<?php echo $block->escapeHtml(__('Add to Compare')); ?>"
    293                                        data-post='<?php echo $compareHelper->getPostDataParams($_item); ?>'
    294                                        role="button">
    295                                         <span><?php echo __('Add to Compare') ?></span>
    296                                     </a>
    297                                     <?php endif; ?>
    298                                 </div>
    299                             </div>
166                                 <?php endif; ?> 300                             <?php endif; ?>
167                             </div> 301                         </div>
168                         </div> 302                     </div>
169                         <?php echo($iterator == count($items)+1) ? '</li>' : '' ?> 303                     <?php echo($iterator == count($items)+1) ? '</li>' : '' ?>
170                     <?php endforeach ?> 304                 <?php endforeach ?>
171                 </ol> 305             </ol>
172             </div> 306         </div>
173             <?php echo $block->getPagerHtml() ?> 307         <?php echo $block->getPagerHtml() ?>
174         </div>    
175     </div>    
176 <?php endif;?> 308 <?php endif;?>